package com.xiao.springcloud.service;

import com.xiao.springcloud.entities.CommonResult;
import com.xiao.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author xiaoxiaoping
 * @Date 2020/9/8 14:26
 * @Version 1.0
 */
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
@Component
public interface PaymentFeignService {
	
	@GetMapping(value = "/payment/get")
	CommonResult<Payment> getPaymentById(@RequestParam("id") Long id);
	
	@GetMapping("/payment/time_out")
	public String getPaymentTimeOut();
}
